Skip to content

Conversation

@lucywyman
Copy link
Contributor

Is there anything else we need to add tests for, for types and providers?

I also wasn't sure whether to squash the commits or not -- let me know if I should!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like this file needs to switch to 2-space indentation

@lucywyman lucywyman changed the title (Modules 2706) types and providers (MODULES-2706) types and providers Nov 2, 2015
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Integers from puppet versions older than 4.0.0 can't actually pass integers; they only pass strings. Maybe check that strings work? (iirc anyway)

@hunner
Copy link
Contributor

hunner commented Nov 4, 2015

Looks like travis ci failure is unrelated to the changes in this pr. Maybe it's transient?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rocket alignment.

@lucywyman
Copy link
Contributor Author

https://travis-ci.org/puppetlabs/puppetlabs-lvm/jobs/90990611

These failures are expected, as we haven't addressed the '7+ doesn't fail' bug yet, and we (or Travis) is using a puppet version less than 4.0, so 7 instead of '7' should fail.

Should I fix the '7+' bug here, or make a new issue and merge that first?

@hunner
Copy link
Contributor

hunner commented Nov 13, 2015

Yeah, the 7+ bug is something you found by making the tests better, so if you want to fix the validation in the type (it needs a $ in the validation regex to match end of line) so the tests pass, that would be the preferred route.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just need to put {}'s around all of the hashes passed to new to make ruby 1.8 pass

@lucywyman
Copy link
Contributor Author

It's passing! It's passing!

@lucywyman
Copy link
Contributor Author

@bmjen
Copy link
Contributor

bmjen commented Nov 20, 2015

\o/

I think @hunner had a couple other suggestions.. and then a squash. Almost there!

…al_volume

Test that the name parameter of the filesystem type must be a fully qualified
path.

(MODULES-2706) Tests for physical_volume type

Test :name and :unless_vg parameters are well formed.

(MODULES-2706) Tests for Logical Volume Type name
hunner added a commit that referenced this pull request Nov 20, 2015
@hunner hunner merged commit 4a5da6a into puppetlabs:master Nov 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants